package com.bsierp.business.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * ContactPersonGroup entity. @author MyEclipse Persistence Tools
 */

public class ContactPersonGroup implements java.io.Serializable {

    // Fields

    private Integer contactpersongroupId;
    private User user;
    private String contactpersongroupName;
    private Set contactPersons = new HashSet(0);

    // Constructors

    /** default constructor */
    public ContactPersonGroup() {
    }

    /** minimal constructor */
    public ContactPersonGroup(User user, String contactpersongroupName) {
        this.user = user;
        this.contactpersongroupName = contactpersongroupName;
    }

    /** full constructor */
    public ContactPersonGroup(User user, String contactpersongroupName,
            Set contactPersons) {
        this.user = user;
        this.contactpersongroupName = contactpersongroupName;
        this.contactPersons = contactPersons;
    }

    // Property accessors

    public Integer getContactpersongroupId() {
        return this.contactpersongroupId;
    }

    public void setContactpersongroupId(Integer contactpersongroupId) {
        this.contactpersongroupId = contactpersongroupId;
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getContactpersongroupName() {
        return this.contactpersongroupName;
    }

    public void setContactpersongroupName(String contactpersongroupName) {
        this.contactpersongroupName = contactpersongroupName;
    }

    public Set getContactPersons() {
        return this.contactPersons;
    }

    public void setContactPersons(Set contactPersons) {
        this.contactPersons = contactPersons;
    }

}